<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>
<body>
    <script src="https://cdn.jsdelivr.net/npm/vue"></script>
<div id="app">
    
    <ul>
        <li v-for="s in student">{{s.name}}</li>
    </ul>
   <label>{{message}}</label>
    <div v-if='canSee'>看得到我</div>
  </div>
 
  <script>
        var app = new Vue({
    el: '#app',
    data: {
      student:[
        {name:'hello world'},
        {name:'hello vue'}
      ],
      message: '页面加载于 ' + new Date().toLocaleString(),
      canSee:true
    }
  }) 
  

  
  </script>
 
</body>
</html>
